'use strict';

angular.module('hackathonApp')
  .controller('ZipCtrl', function ($scope,$location,$rootScope) {
      $scope.changeView = function(view){
		  	$rootScope.filterZipCode = $scope.filterZipCode;
			$rootScope.filterDistance = $scope.filterDistance;
           $location.path(view);
       }
  });